import {terser} from 'rollup-plugin-terser'
import postcss from 'rollup-plugin-postcss'
import serve from 'rollup-plugin-serve'
import livereload from 'rollup-plugin-livereload'
import alias from '@rollup/plugin-alias'
const path=require('path')
const resolveDir=dir=>path.join(__dirname,dir);
export default {
    input:'src/index.js',
    output:{
        file:'dist/xntable.min.js',
        format:'es',
        name:'bundleName',
        sourcemap:true
    },
    plugins:[
        terser(),
        postcss(),
        livereload(),
        serve({
            open:true,
            port:8888,
            contentBase:''
        })
    ]
}
